﻿using DataBase;
using DTS_Helper.Services;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using System.Net.Sockets;
using System.Text;

namespace DTS_Helper
{
    internal class Program
    {
        static void Main(string[] args)
        {
            IServiceCollection services = new ServiceCollection();
            services.AddSingleton<FreeSqlService>();
            services.AddSingleton<DTS_Service>();
            services.AddSingleton<NlogService>();
            services.AddSingleton<MainService>();
            var builder = services.BuildServiceProvider();
            builder.GetService<MainService>().Run();

            Console.WriteLine("Hello, World!");
            Console.ReadKey();


        }
    }
}
